package com.situ.fly.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LikeMapper {

	/**
	 * 添加点赞
	 */
	@Insert("insert into `like` (aid, uid) value (#{aid}, #{uid})")
	int insert(Integer aid, Integer uid);
	
	/**
	 * 删除点赞
	 */
	@Delete("delete from `like` where aid=#{aid} and uid=#{uid}")
	int delete(Integer aid, Integer uid);
	
}
